package com.qiaofang.applet.service.property.repository;

import com.qiaofang.applet.service.property.domain.EstateAlbum;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface EstateAlbumRepository extends MongoRepository<EstateAlbum, String> {
    List<EstateAlbum> findAllByEstateUniqueUuid(String estateUniqueUuid);

    EstateAlbum findByEstateUniqueUuidAndTypeName(String estateUniqueUuid, String typeName);

    EstateAlbum findByEstateUniqueUuidAndId(String estateUniqueUuid, String id);


}
